<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<%@ include file="/include/meta.jsp"%>
	<base href="<%=basePath%>">
	<title>系统初始化</title>
	<link rel="stylesheet" type="text/css" href="res/js/bootstrap-3.2.0-dist/css/bootstrap-theme.min.css" />
	<link rel="stylesheet" type="text/css" href="res/js/bootstrap-3.2.0-dist/css/bootstrap.min.css" />
	<script type="text/javascript" src="res/js/jquery-easyui-1.4/jquery.min.js"></script>
	<script type="text/javascript" src="res/js/jquery.noty.packaged.min.js"></script>
	<script type="text/javascript" src="res/js/global.js"></script>
	<script>
		$(function(){
			$("#initButton").click(function(){
				$("body").html("正在初始化，请稍后<img alt='waiting' src='res/image/system/ajaxload.gif' />");
				$.ajax({
				  	url: "setup/init!start.action",
				  	success: function(data){
				  		$("body").html("初始化完成！");
				    	__showMessage('初始化完成！',function(){location.href='login.action';});
				  	}
				});
			});
		});
	</script>
</head>
<body>
	<label>系统初始化？</label><button id="initButton" class="btn btn-link">确定</button>
</body>
</html>